<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      ImageMagick-6.9.10-93
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;11.&nbsp;General Utilities
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="ibus.html" title="ibus-1.5.22">Prev</a>
          <p>
            ibus-1.5.22
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="imagemagick.html" title=
          "ImageMagick-7.0.9-23">Next</a>
          <p>
            ImageMagick-7.0.9-23
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genutils.html" title=
          "Chapter&nbsp;11.&nbsp;General Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="imagemagick6" name="imagemagick6"></a>ImageMagick-6.9.10-93
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to ImageMagick-6 libraries
        </h2>
        <p>
          <span class="application">ImageMagick</span> underwent many changes
          in its libraries between versions 6 and 7. Most packages in BLFS
          which use <span class="application">ImageMagick</span> can use
          version 7, but for the others this page will install only the
          libraries, headers and general documentation (not programs,
          manpages, perl modules), and it will rename the unversioned
          pkgconfig files so that they do not overwrite the same-named files
          from version 7.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://www.imagemagick.org/download/releases/ImageMagick-6.9.10-93.tar.xz">
                https://www.imagemagick.org/download/releases/ImageMagick-6.9.10-93.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download (FTP): <a class="ulink" href=
                "ftp://ftp.imagemagick.org/pub/ImageMagick/releases/ImageMagick-6.9.10-93.tar.xz">
                ftp://ftp.imagemagick.org/pub/ImageMagick/releases/ImageMagick-6.9.10-93.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: ddbb2bed4145e3f7b0ff6c105ddbf612
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 8.7 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 158 MB, with typical
                dependencies (add 40 MB for tests)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.9 SBU (Using parallelism=4; add 1.9
                SBU for tests)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Additional Downloads
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Required patch: <a class="ulink" href=
                "http://www.linuxfromscratch.org/patches/blfs/svn/ImageMagick-6.9.10-93-libs_only-1.patch">
                http://www.linuxfromscratch.org/patches/blfs/svn/ImageMagick-6.9.10-93-libs_only-1.patch</a>
              </p>
            </li>
          </ul>
        </div>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            The <span class="application">ImageMagick</span> source releases
            are updated frequently and the version shown above may no longer
            be available from the download locations. You can download a more
            recent version and use the existing BLFS instructions to install
            it. Chances are that it will work just fine, but this has not
            been tested by the BLFS team. If the package version shown above
            is not available from the locations shown above, or from the
            <code class="filename">legacy/</code> directory at <code class=
            "literal">ftp.ImageMagick.org/pub/ImageMagick</code> you can
            download it from the BLFS package server at Oregon State
            University: <a class="ulink" href=
            "ftp://ftp.osuosl.org/pub/blfs/conglomeration/ImageMagick/">ftp://ftp.osuosl.org/pub/blfs/conglomeration/ImageMagick/</a>.
          </p>
        </div>
        <h3>
          ImageMagick-6 Dependencies
        </h3>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="../x/x7lib.html" title="Xorg Libraries">Xorg
          Libraries</a>
        </p>
        <p>
          The optional dependencies listed below should be installed if you
          need support for the specific format or the conversion tool the
          dependency provides. Many of the dependencies' capabilities and
          uses are described in the <span class="quote">&ldquo;<span class=
          "quote">MAGICK DELEGATES</span>&rdquo;</span> section of the
          <code class="filename">README.txt</code> file located in the source
          tree. Additional information about the dependencies can be found in
          the <code class="filename">Install-unix.txt</code> file located in
          the source tree as well as issuing the <span class=
          "command"><strong>./configure --help</strong></span> command. A
          summary of this information, as well as some additional notes can
          be viewed on-line at <a class="ulink" href=
          "http://www.imagemagick.org/script/advanced-unix-installation.php">http://www.imagemagick.org/script/advanced-unix-installation.php</a>.
        </p>
        <h4>
          Optional System Utilities
        </h4>
        <p class="optional">
          <a class="xref" href="../pst/cups.html" title=
          "Cups-2.3.1">Cups-2.3.1</a>, <a class="xref" href=
          "../basicnet/curl.html" title="cURL-7.69.1">cURL-7.69.1</a>,
          <a class="xref" href="../multimedia/ffmpeg.html" title=
          "FFmpeg-4.2.2">FFmpeg-4.2.2</a>, <a class="xref" href="fftw.html"
          title="fftw-3.3.8">fftw-3.3.8</a>, <a class="xref" href=
          "p7zip.html" title="p7zip-16.02">p7zip-16.02</a> (LZMA), <a class=
          "xref" href="../pst/sane.html" title="SANE-1.0.29">SANE-1.0.29</a>,
          <a class="xref" href="../basicnet/wget.html" title=
          "Wget-1.20.3">Wget-1.20.3</a>, <a class="xref" href=
          "../xsoft/xdg-utils.html" title=
          "xdg-utils-1.1.3">xdg-utils-1.1.3</a>, <a class="xref" href=
          "../x/xterm.html" title="xterm-353">xterm-353</a>, <a class="ulink"
          href="http://dmalloc.com/">Dmalloc</a>, <a class="ulink" href=
          "http://linux.softpedia.com/get/Programming/Debuggers/Electric-Fence-3305.shtml/">
          Electric Fence</a>, <a class="ulink" href=
          "http://www.openpgp.org/about/">PGP</a> or <a class="xref" href=
          "../postlfs/gnupg.html" title="GnuPG-2.2.20">GnuPG-2.2.20</a>
          (you'll have to do some hacking to use <span class=
          "application">GnuPG</span>), <a class="ulink" href=
          "ftp://ftp.imagemagick.org/pub/ImageMagick/delegates">Profiles</a>,
          and <a class="ulink" href="http://ufraw.sourceforge.net/">ufraw</a>
          (for raw formats listed in <a class="ulink" href=
          "http://imagemagick.org/script/formats.php">http://www.imagemagick.org/www/formats.html</a>)
        </p>
        <h4>
          Optional Graphics Libraries
        </h4>
        <p class="optional">
          <a class="xref" href="jasper.html" title=
          "JasPer-2.0.14">JasPer-2.0.14</a>, <a class="xref" href="lcms.html"
          title="Little CMS-1.19">Little CMS-1.19</a> or <a class="xref"
          href="lcms2.html" title="Little CMS-2.9">Little CMS-2.9</a>,
          <a class="xref" href="libexif.html" title=
          "libexif-0.6.21">libexif-0.6.21</a>, <a class="xref" href=
          "libgxps.html" title="Libgxps-0.3.1">libgxps-0.3.1</a>, <a class=
          "xref" href="libjpeg.html" title=
          "libjpeg-turbo-2.0.4">libjpeg-turbo-2.0.4</a>, <a class="xref"
          href="libpng.html" title="libpng-1.6.37">libpng-1.6.37</a>,
          <a class="xref" href="libraw.html" title=
          "libraw-0.19.5">libraw-0.19.5</a> (RAW_R), <a class="xref" href=
          "librsvg.html" title="librsvg-2.48.2">librsvg-2.48.2</a>, <a class=
          "xref" href="libtiff.html" title="LibTIFF-4.1.0">LibTIFF-4.1.0</a>,
          <a class="xref" href="libwebp.html" title=
          "libwebp-1.1.0">libwebp-1.1.0</a>, <a class="xref" href=
          "openjpeg2.html" title="OpenJPEG-2.3.1">OpenJPEG-2.3.1</a>,
          <a class="xref" href="../x/pango.html" title=
          "Pango-1.44.7">Pango-1.44.7</a>, <a class="ulink" href=
          "http://djvu.sourceforge.net/">DjVuLibre</a>, <a class="ulink"
          href="ftp://ftp.imagemagick.org/pub/ImageMagick/delegates/">FlashPIX
          (libfpx)</a>, <a class="ulink" href=
          "https://github.com/FLIF-hub/FLIF/releases">FLIF</a>, <a class=
          "ulink" href=
          "http://www.cl.cam.ac.uk/~mgk25/jbigkit/">JBIG-KIT</a>, <a class=
          "ulink" href="https://github.com/HOST-Oman/libraqm/">libraqm</a>,
          <a class="ulink" href=
          "http://liblqr.wikidot.com/en:download-page">Liquid Rescale</a>,
          <a class="ulink" href="http://www.openexr.com/">OpenEXR</a>, and
          <a class="ulink" href=
          "http://www.agocg.ac.uk/train/cgm/ralcgm.htm">RALCGM</a> (or
          <a class="ulink" href=
          "http://www.mcmurchy.com/ralcgm/ralcgm-3.51.tar.gz">ralcgm</a>)
        </p>
        <h4>
          Optional Graphics Utilities
        </h4>
        <p class="optional">
          <a class="xref" href="../x/TTF-and-OTF-fonts.html#dejavu-fonts"
          title="DejaVu fonts">Dejavu fonts</a>, <a class="xref" href=
          "../pst/gs.html" title="ghostscript-9.52">ghostscript-9.52</a>,
          <a class="xref" href="../xsoft/gimp.html" title=
          "Gimp-2.10.18">Gimp-2.10.18</a>, <a class="xref" href=
          "graphviz.html" title="Graphviz-2.42.3">Graphviz-2.42.3</a>,
          <a class="xref" href="../xsoft/inkscape.html" title=
          "Inkscape-0.92.4">Inkscape-0.92.4</a>, <a class="ulink" href=
          "http://www.blender.org/">Blender</a>, <a class="ulink" href=
          "http://corefonts.sourceforge.net/">corefonts</a>, <a class="ulink"
          href=
          "http://www.ghostscript.com/download/gpcldnld.html">GhostPCL</a>,
          <a class="ulink" href="http://www.gnuplot.info/">Gnuplot</a>,
          <a class="ulink" href="http://www.povray.org/">POV-Ray</a>, and
          <a class="ulink" href=
          "http://www.radiance-online.org/">Radiance</a>
        </p>
        <h4>
          Optional Conversion Tools
        </h4>
        <p class="optional">
          <a class="xref" href="../pst/enscript.html" title=
          "Enscript-1.6.6">Enscript-1.6.6</a>, <a class="xref" href=
          "../pst/texlive.html" title=
          "texlive-20190410-source">texlive-20190410</a> (or <a class="xref"
          href="../pst/tl-installer.html" title=
          "install-tl-unx">install-tl-unx</a>) <a class="ulink" href=
          "http://autotrace.sourceforge.net/">AutoTrace</a>, <a class="ulink"
          href="http://www.lizardtech.com/downloads/category/">GeoExpress
          Command Line Utilities, AKA MrSID Utilities (binary package)</a>,
          <a class="ulink" href=
          "http://www.gnu.org/software/hp2xx/">hp2xx</a>, <a class="ulink"
          href="http://user.it.uu.se/~jan/html2ps.html">html2ps</a>,
          <a class="ulink" href="http://wvware.sourceforge.net/">libwmf</a>,
          <a class="ulink" href=
          "http://sk1project.org/modules.php?name=products&amp;product=uniconvertor">
          UniConvertor</a>, and <a class="ulink" href=
          "http://www.cs.utah.edu/gdc/projects/urt/">Utah Raster Toolkit</a>
          (or <a class="ulink" href=
          "http://www.mcmurchy.com/urt/urt-3.1b.tar.gz">URT-3.1b</a>)
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/imagemagick">http://wiki.linuxfromscratch.org/blfs/wiki/imagemagick</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of ImageMagick-6 libraries
        </h2>
        <p>
          Install <span class="application">ImageMagick</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class=
"command">patch -Np1 -i ../ImageMagick-6.9.10-93-libs_only-1.patch &amp;&amp;
autoreconf -fi                                          &amp;&amp;
./configure --prefix=/usr     \
            --sysconfdir=/etc \
            --enable-hdri     \
            --with-modules    \
            --disable-static  &amp;&amp;
make</kbd>
</pre>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class=
"command">make DOCUMENTATION_PATH=/usr/share/doc/imagemagick-6.9.10 install-libs-only</kbd>
</pre>
        <p>
          To test the installation, issue: <span class="command"><strong>make
          check</strong></span>. Note that the EPS, PS, and PDF tests require
          a working <span class="application">Ghostscript</span>. One test in
          'make check' needs <span class="quote">&ldquo;<span class=
          "quote">Helvetica</span>&rdquo;</span> from <span class=
          "quote">&ldquo;<span class="quote">Ghostscript Standard
          Fonts</span>&rdquo;</span>, which are optionally installed in
          <a class="xref" href="../pst/gs.html" title=
          "ghostscript-9.52">ghostscript-9.52</a> - that test, and one other,
          might fail, but all the validation can still pass.
        </p>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>patch -Np1 -i
          ../ImageMagick-6.9.10-imagemagick6_libs_only-1.patch</strong></span>:
          Move unversioned pkgconfig files to versioned names and provide an
          option to only install libraries and associated files.
        </p>
        <p>
          <em class="parameter"><code>--enable-hdri</code></em>: Enables
          building of a high dynamic range version of ImageMagick.
        </p>
        <p>
          <em class="parameter"><code>--with-modules</code></em>: Enables
          support for dynamically loadable modules.
        </p>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
        <p>
          <code class="option">--with-gslib</code>: Enables support to use
          the <span class="application">Ghostscript</span> shared library.
        </p>
        <p>
          <code class="option">--with-rsvg</code>: Enables support to use the
          <span class="application">librsvg</span> library.
        </p>
        <p>
          <code class="option">--with-autotrace</code>: Enables support to
          use the <span class="application">Autotrace</span> library.
        </p>
        <p>
          <code class="option">--with-wmf</code>: Enables support to use the
          <span class="application">libwmf</span> library.
        </p>
        <p>
          <code class="option">--with-gvc</code>: Enables support to use
          <span class="application">GraphViz</span>.
        </p>
        <p>
          <code class="option">--with-windows-font-dir= <em class=
          "replaceable"><code>&lt;Some/Directory&gt;</code></em></code>: This
          option specifies the directory where the Windows CoreFonts are
          installed.
        </p>
        <p>
          <code class="option">--with-dejavu-font-dir= <em class=
          "replaceable"><code>&lt;Some/Directory&gt;</code></em></code>: This
          option specifies the directory where the DejaVu fonts are
          installed.
        </p>
        <p>
          The options and parameters listed above are the only ones you
          should have to pass to the <span class=
          "command"><strong>configure</strong></span> script to activate all
          the delegate dependencies. All other dependencies will be
          automatically detected and utilized in the build if they are
          installed.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libMagickCore-6.Q16HDRI.so,
              libMagickWand-6.Q16HDRI.so and libMagick++-6.Q16HDRI.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/etc/ImageMagick-6,
              /usr/include/ImageMagick-6, /usr/lib/ImageMagick-6.9.10,
              /usr/share/doc/ImageMagick-6.9.10, and
              /usr/share/ImageMagick-6</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="libMagickCore-6.Q16HDRI" name=
                    "libMagickCore-6.Q16HDRI"></a><span class=
                    "term"><code class=
                    "filename">libMagickCore-6.Q16HDRI.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    provides the C API for ImageMagick.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libMagickWand-6.Q16HDRI" name=
                    "libMagickWand-6.Q16HDRI"></a><span class=
                    "term"><code class=
                    "filename">libMagickWand-6.Q16HDRI.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the recommended C API for ImageMagick. Unlike the
                    MagickCore API it uses only a few opaque types.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libMagickpp-6.Q16HDRI" name=
                    "libMagickpp-6.Q16HDRI"></a><span class=
                    "term"><code class=
                    "filename">libMagick++-6.Q16HDRI.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    provides the C++ API for ImageMagick.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-03-18 05:00:14 -0500
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="ibus.html" title="ibus-1.5.22">Prev</a>
          <p>
            ibus-1.5.22
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="imagemagick.html" title=
          "ImageMagick-7.0.9-23">Next</a>
          <p>
            ImageMagick-7.0.9-23
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genutils.html" title=
          "Chapter&nbsp;11.&nbsp;General Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
